(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["preloadChunk-GamesListCard"],{"588c":function(e,t,a){"use strict";a("c6a6")},"69bb":function(e,t,a){},7407:function(e,t,a){"use strict";a("d81d"),a("14d9"),a("13d5");var i=a("ca47");t["a"]={props:{game:{type:Object,default:()=>({})}},computed:Object.assign(Object.assign({},Object(i["e"])("tournaments",["getTournamentsInProgressById"])),{isTournamentGame(){return this.hasActiveTournaments&&!this.isGameInfoComponent&&!this.hideBadges},hasActiveTournaments(){return this.gameActiveTournament.length>0},gameActiveTournament(){return this.game.arr_tournament?this.game.arr_tournament.reduce((e,t)=>(this.getTournamentsInProgressById[t]&&e.push(this.getTournamentsInProgressById[t]),e),[]):[]},activeTournamentsTooltipLinks(){return this.gameActiveTournament.map(({name:e,code:t})=>({url:`${this.getLanguageForUrl}/tournaments/${t}`,name:e}))}})}},8777:function(e,t,a){"use strict";var i=a("5530"),s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"card-badge"},[t("div",{staticClass:"card-badge__top"},[t("div",{staticClass:"card-badge__top-col"},[e.isJackpot?t("div",{staticClass:"card-badge__top-jackpot card-badge-item"},[e.jackpotMoney?t("div",[e._v(" "+e._s(e._f("with_separator")(e.jackpotMoney))+" "+e._s(e.gameCurrencySymbol)+" ")]):t("div",[e._v(" "+e._s(e.$t("jackpot"))+" ")])]):e._e(),e.isNewCollection?t("div",{staticClass:"card-badge__top-new card-badge-item"},[e._v(" "+e._s(e.$t("badge.new"))+" ")]):e._e()]),t("div",{staticClass:"card-badge__top-col card-badge__top-col--last"},[e.isNoBonusVisible?t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:Object(i["a"])(Object(i["a"])({},e.defaultTooltipOptions),{},{placement:"bottom",content:e.$t("bonus.unavailable_game")}),expression:"{\n ...defaultTooltipOptions,\n placement: 'bottom',\n content: $t('bonus.unavailable_game')\n }"}],staticClass:"card-badge__top-no-bonus card-badge-item"},[t("icon",{staticClass:"card-badge-item-icon",attrs:{"icon-name":"gift_no_bm",width:"16",height:"16"}})],1):e._e(),e.isBonusVisible?t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:Object(i["a"])(Object(i["a"])({},e.defaultTooltipOptions),{},{placement:"bottom",content:e.$t("bonus.wager_your_bonus")}),expression:"{\n ...defaultTooltipOptions,\n placement: 'bottom',\n content: $t('bonus.wager_your_bonus')\n }"}],staticClass:"card-badge__top-bonus card-badge-item"},[t("icon",{staticClass:"card-badge-item-icon",attrs:{"icon-name":"gift",width:"16",height:"16"}})],1):e._e(),e.isTournamentGame?t("div",{staticClass:"card-badge__top-tournament card-badge-item"},[t("icon",{staticClass:"card-badge-item-icon",attrs:{"icon-name":"tournaments",width:"16",height:"16"}})],1):e._e()])]),t("div",{staticClass:"card-badge__bottom"},[e.isDropsAndWins?t("div",{staticClass:"card-badge__bottom-promo"},[t("img",{staticClass:"card-badge__bottom-promo-img",attrs:{src:"/img/dropandwins.png",alt:"drops and wins"}})]):e._e(),e.isLive?t("div",{staticClass:"card-badge__bottom-live"},[e._v(" "+e._s(e.$t("badge.live"))+" ")]):e._e()])])},o=[],r=(a("caad"),a("2532"),a("ca47")),n=a("13b0"),l=a("d197"),d=a("c16e"),c=a("60b5"),m=a("7407"),g=a("5d2a"),u={name:"card-badge",components:{Icon:g["a"]},mixins:[d["a"],c["a"],m["a"]],props:{game:{type:Object,default:()=>({})},hideBadges:{type:Boolean,default:!1},isGameInfoComponent:{type:Boolean,default:!1}},computed:Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(r["e"])("player",["getGameCurrencyCode","getLanguageForUrl"])),Object(r["e"])("breakpoints",["isMobile"])),{},{defaultTooltipOptions(){return{shown:this.isGameInfoComponent,theme:"tooltip--dark",triggers:[n["c"]],placement:"bottom",popperClass:"card-badge-item-tooltip"}},isDropsAndWins(){var e,t;return null===(e=this.game)||void 0===e||null===(t=e.collections)||void 0===t?void 0:t.includes(l["d"].DROPS_AND_WINS)},isLive(){var e;return null===(e=this.game)||void 0===e?void 0:e.collections.includes(l["d"].LIVE)},isJackpot(){var e;return(null===(e=this.game)||void 0===e?void 0:e.collections.includes(l["d"].JACKPOT))&&!this.hideBadges},isNewCollection(){var e,t;return(null===(e=this.game)||void 0===e||null===(t=e.collections)||void 0===t?void 0:t.includes(l["d"].NEW))&&!this.hideBadges},isNoBonusVisible(){return this.isGameForbiddenByBonuses(this.game)&&!this.isGameInfoComponent},isBonusVisible(){var e;return!(null!==(e=this.game)&&void 0!==e&&e.collections.includes(l["d"].REAL_MONEY))&&!this.isGameForbiddenByBonuses(this.game)&&!this.isGameInfoComponent},jackpotMoney(){var e,t;if(!this.isJackpot||null===(e=this.game.arr_jackpot)||void 0===e||!e.hasOwnProperty(this.getGameCurrencyCode))return 0;const a=(null===(t=this.getGameCurrencyCode)||void 0===t?void 0:t.subunits_to_unit)||100;return parseInt(this.game.arr_jackpot[this.getGameCurrencyCode]/a)}})},p=u,h=(a("588c"),a("2877")),b=Object(h["a"])(p,s,o,!1,null,null,null);t["a"]=b.exports},"8da0":function(e,t,a){"use strict";a("69bb")},"9bd3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"lazy-container",rawName:"v-lazy-container",value:{selector:".games-list-card__body-img"},expression:"{ selector: '.games-list-card__body-img' }"}],staticClass:"games-list-card",class:["games-list-card--"+e.cardSize,{"games-list-card--hovered":e.isHoveredGameClass&&!e.isLastShowAll,"games-list-card--blocked-clicked":e.blockMessage||e.game.open_at,"games-item--not-time-work":e.game.open_at,"games-list-card--with-jackpot":e.jackpotMoney,"games-list-card--cursor-pointer":e.isLastShowAll,"games-list-card--with-bottom-label":e.showBottomLabel}],on:{click:e.handleClick,mouseenter:function(t){return e.toggleCardHover(t,!0)},mouseleave:function(t){return e.toggleCardHover(t,!1)}}},[t("div",{staticClass:"games-list-card__border"}),t("div",{staticClass:"games-list-card__border--hover"}),t("div",{staticClass:"games-list-card__blur"}),t("div",{staticClass:"games-list-card__img-area",class:{"games-list-card__img-area--see-all":e.isLastShowAll}},[e.isShowBadge?t("card-badge",{attrs:{game:e.game}}):e._e(),t("lazy-img",{attrs:{game:e.game,"class-name":"games-list-card__body-img","is-game":""},on:{loaded:e.updateMainImageLoaded}}),e.isShowClosedText?t("div",{staticClass:"games-item-closed"},[t("div",{staticClass:"games-item-closed__text"},[e._v(" "+e._s(e.$t("game.game_opens_at"))+" "+e._s(e._f("moment")(e.game.open_at,"HH:mm"))+" ")])]):e._e()],1),e.isLastShowAll?t("div",{staticClass:"games-list-card__see-all"},[t("div",{staticClass:"btn btn--circle btn--secondary games-list-card__see-all-icon-wr"},[t("span",{staticClass:"btn__border-hover"}),t("icon",{staticClass:"games-list-card__see-all-icon",attrs:{"icon-name":"plus"}})],1),t("div",{staticClass:"games-list-card__see-all-text"},[e._v(" "+e._s(e.$t("games_collections.show_all"))+" ")])]):e._e(),e.isLastShowAll?e._e():t("div",{staticClass:"games-list-card__body",class:{"games-list-card__body--visible":e.isHoverVisible}},[e.isShowHoveredGamesCard?t("games-list-card-hovered",{attrs:{game:e.game,"rtp-options":e.combinedRtpOptions,"is-game-favorite":e.isGameFavorite,position:e.position,"gtm-element":e.gtmElement,"additional-analytics-params":e.additionalAnalyticsParams,"hide-badges":e.hideBadges},on:{"change-block-message":e.changeBlockMessage,"toggle-favorite":e.toggleFavoriteStatus}}):e._e()],1),e.showBottomLabel?t("div",{staticClass:"games-list-card__bottom"},[t("div",{staticClass:"games-list-card__bottom-name"},[e._v(" "+e._s(e.game.title)+" ")]),e.providerLink?t("router-link",{staticClass:"games-list-card__bottom-provider",attrs:{to:e.providerLink}},[e._v(" "+e._s(e.gameProviderName)+" ")]):e._e()],1):e._e()])},s=[],o=a("5530"),r=(a("caad"),a("14d9"),a("2532"),a("ca47")),n=a("5d2a"),l=a("a3a7"),d=a("8777"),c=a("c235"),m=a("ba60"),g=a("60e8"),u=a("60b5"),p=a("8f12"),h=a("d226"),b=a("a026"),v=a("5e92"),_={name:"games-list-card",components:{LazyImg:l["a"],CardBadge:d["a"],GamesListCardHovered:Object(b["defineAsyncComponent"])(()=>a.e("HoveredState").then(a.bind(null,"d23b"))),Icon:n["a"]},mixins:[c["a"],u["a"],m["a"],g["a"],v["a"]],props:{cardSize:{type:String,default:""},game:{type:Object,default:()=>({})},isHoveredGame:{type:Boolean,default:!1},rtpOptions:{type:Object,required:!1,default:()=>({})},position:{type:Number,default:0},gtmElement:{type:[Object,String],default:()=>({})},isLastShowAll:{type:Boolean,default:!1},hideBadges:{type:Boolean,default:!1},showBottomLabel:{type:Boolean,default:!0},additionalAnalyticsParams:{type:Object,default:()=>({})}},data(){return{blockMessage:"",isMainImageLoaded:!1}},computed:Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(r["e"])("player",{languageForUrl:"getLanguageForUrl",isPlayerAuthorized:"isPlayerAuthorized",gameCurrency:"getGameCurrencyCode"})),Object(r["e"])("breakpoints",["isMobile","isMobileOrTablet"])),Object(r["e"])("playerFavoriteGames",["playerFavoriteGamesArray"])),Object(r["e"])("cmsConfig",["getIsHomePage"])),{},{isHoverVisible(){return this.isHoveredGame&&!this.blockMessage&&!this.isMobileOrTablet},isHoveredGameClass(){return this.isHoveredGame&&!this.isMobileOrTablet},isAllLiveCasinoPage(){return this.$route.path===`${this.languageForUrl}/${p["jc"].LIVE}`},isJackpot(){var e;return null===(e=this.game.collections)||void 0===e?void 0:e.includes(p["jc"].JACKPOT)},jackpotMoney(){var e,t;if(!this.isJackpot||null===(e=this.game.arr_jackpot)||void 0===e||!e.hasOwnProperty(this.gameCurrency))return 0;const a=(null===(t=this.gameCurrency)||void 0===t?void 0:t.subunits_to_unit)||100;return parseInt(this.game.arr_jackpot[this.gameCurrency]/a)},isGameFavorite(){return this.playerFavoriteGamesArray.some(({id:e})=>e===this.game.id)},playUrl(){return`${this.game.slug?this.languageForUrl:""}${this.game.slug||""}`},combinedRtpOptions(){var e,t;if(this.rtpOptions)return Object(o["a"])(Object(o["a"])({},this.rtpOptions),{},{value:null===(e=this.game)||void 0===e||null===(t=e.rtp)||void 0===t?void 0:t.value})},isShowClosedText(){return this.game.open_at&&!this.isLastShowAll},isShowHoveredGamesCard(){return this.isHoverVisible&&!this.isLastShowAll},isShowBadge(){return!this.isLastShowAll&&this.isMainImageLoaded&&!this.hideBadges},providerLink(){var e;return(null===(e=this.gameProvider)||void 0===e?void 0:e.link)+"-games"}}),watch:{blockMessage(e){e&&setTimeout(()=>{this.blockMessage="",!this.isMobile||this.game.play_url[this.gameCurrency]?this.$router.push(this.playUrl).catch(()=>({})):this.$bus.emit("toggle-converter","converter-game-modal",this.game)},2500)}},methods:Object(o["a"])(Object(o["a"])({},Object(r["d"])("playerFavoriteGames",["addByFormattedIdentifier","removeByFormattedIdentifier"])),{},{updateMainImageLoaded(){this.isMainImageLoaded=!0},toggleFavoriteStatus(e){e.stopPropagation(),this.isGameFavorite?this.removeByFormattedIdentifier(this.game.identifier):this.addByFormattedIdentifier(this.game.identifier)},changeBlockMessage(e){this.blockMessage=e},handleClick(e){if(this.isLastShowAll)return void this.$emit("handle-click-last-show-all");if(!this.isMobileOrTablet)return;const t="string"===typeof this.gtmElement?this.gtmElement:this.gtmElement&&this.gtmElement.hasOwnProperty("game")?this.gtmElement.game:"",a=Object(h["b"])({cardInternalElement:e.target,cardWrapperSelector:Object(h["a"])(this.game)}),i=a.position,s=a.line,r=Object(h["c"])({game:this.game,gtmElement:this.gtmElement,position:i,line:s,isMobile:!0}),n=Object(o["a"])(Object(o["a"])({},r),this.additionalAnalyticsParams);this.$analytics.logEvent(n);const l=Object(o["a"])(Object(o["a"])({},this.game),{},{gtm:{line:s,position:i,place:t}});this.$bus.emit("open-game-info",l)},toggleCardHover(e,t){var a;if(!this.getIsHomePage&&!this.isAllLiveCasinoPage)return;const i=null===(a=e.target)||void 0===a?void 0:a.closest(".games-slider-wrap");var s;i&&(t?null===(s=i.classList)||void 0===s||s.add("games-slider-wrap--hovered"):i.classList.remove("games-slider-wrap--hovered"))}})},f=_,y=(a("8da0"),a("2877")),C=Object(y["a"])(f,i,s,!1,null,null,null);t["default"]=C.exports},a3a7:function(e,t,a){"use strict";var i=function(){var e=this,t=e._self._c;return t("img",{class:e.className,attrs:{"data-src":e.image,src:e.defaultGameImgPlaceholder,"data-loading":e.defaultGameImgPlaceholder,"data-error":e.defaultGameErrorImgPlaceholder,alt:e.altImage},on:{load:e.imageLoaded}})},s=[],o=a("5530"),r=a("8f12"),n=a("ca47"),l={name:"lazy-img",props:{game:{type:Object,default:()=>({})},srcImg:{type:String,default:""},className:{type:String,default:""},isGame:{type:Boolean,default:!1}},computed:Object(o["a"])(Object(o["a"])({},Object(n["e"])("games",["getGamePicture"])),{},{image(){return this.srcImg?this.srcImg:this.getGamePicture(this.game,r["Ib"])},altImage(){var e,t;return null!==(e=null===(t=this.game)||void 0===t?void 0:t.title)&&void 0!==e?e:""},defaultGameImgPlaceholder(){return this.isGame?r["Ib"]:""},defaultGameErrorImgPlaceholder(){return this.isGame?r["Hb"]:""}}),methods:{imageLoaded(){this.$emit("loaded")}}},d=l,c=a("2877"),m=Object(c["a"])(d,i,s,!1,null,null,null);t["a"]=m.exports},ba60:function(e,t,a){"use strict";var i=a("5530"),s=a("ca47");t["a"]={computed:Object(i["a"])(Object(i["a"])({},Object(s["e"])("playerFavoriteGames",["playerFavoriteGamesArray"])),{},{isGameFavorite(){return this.playerFavoriteGamesArray.some(({id:e})=>e===this.game.id)},favoriteIcon(){return this.isGameFavorite?"favorite-filled":"favorite"}}),methods:Object(i["a"])(Object(i["a"])({},Object(s["d"])("playerFavoriteGames",["addByFormattedIdentifier","removeByFormattedIdentifier"])),{},{toggleFavoriteStatus(){this.isGameFavorite?this.removeByFormattedIdentifier(this.game.identifier):this.addByFormattedIdentifier(this.game.identifier)}})}},c6a6:function(e,t,a){},d226:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return d}));a("4de4"),a("13d5"),a("4fad"),a("ac1f"),a("841c");var i=a("8f12"),s=a("0c9e");function o(e,t){return parseFloat(e.getPropertyValue(t))||0}function r(e){var t;const a=null!==(t=e.domId)&&void 0!==t?t:e.id.toString();return`.games-list-card[data-game-id="${a}"]`}function n({cardInternalElement:e,cardWrapperSelector:t,cardWrapperElement:a}){const i=a||e.closest(t),s=null===i||void 0===i?void 0:i.parentElement;if(!i||!s)return{line:1,position:1};const r=s.getBoundingClientRect(),n=i.getBoundingClientRect();let l=1,d=1;if(r.x===n.x&&r.y===n.y)return{line:l,position:d};const c=![...s.querySelectorAll(".games-list-card"),s.querySelector(".games-cards-video")].some(e=>e!==i&&(null===e||void 0===e?void 0:e.getBoundingClientRect().y)!==n.y),m=Boolean(s.querySelector(".games-cards-video")),g=window.getComputedStyle(i);let u=o(g,"marging-left")+o(g,"margin-right"),p=o(g,"margin-top")+o(g,"margin-bottom");if(!c){const e=window.getComputedStyle(s);p+=o(e,"row-gap"),u+=o(e,"column-gap"),l=n.y===r.y?1:Math.round((n.y-r.y)/(n.height+p))+1}const h=n.x===r.x?1:Math.round((n.x-r.x)/(n.width+u))+1,b=Math.round(r.width/(n.width+u));return d=b*(l-1)+h,m&&(d-=1),{line:l,position:d}}function l(e,t){let a=t?e.mobileCard:e.desktopCard;if(!a){const e=window.location.pathname.substring(1),i=window.location.search.substring(1).split("=")[0];a=`${e} ${i} ${t?"card_game":"game"}`}return a}function d({game:e,gtmElement:t,line:a,position:o,currency_type:r,isMobile:n,provider_name:d}){const c=e.identifier,m={button:l(t,n),game_identifier:c,line:a,position:o,event:i["Tb"].click};if(r&&(m.currency_type=r),d&&(m.provider_name=d),m.button===s["b"].main.recommended.desktopCardFavorites&&(m.favorite_state=t.favoriteState),t.cardFilter){const e=Object.entries(t.cardFilter).filter(([,e])=>"undefined"!==typeof e);e.length&&(m.filter=e.reduce((e,[t,a])=>(e[t]=a,e),{}))}return m}}}]);